Skip to content

fix(suggest): auto-correct typing slips in unknown short words (#1005) - #1015

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/1005-short-word-autocorrect
Nov 30, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/1005-short-word-autocorrect

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Unknown words of up to 3 letters were not auto-corrected at all, to protect slang and abbreviations.

ShortWordGuard keeps that protection, but lets a 3 letter word be corrected if it looks like a typing slip: two swapped neighbors (as before), or one letter on a neighbor key of the layout with a normalized score of at least 0.17. Existing exceptions are unchanged, two letter words get no new corrections.

Verified: SuggestTest, ShortWordGuardTest and InputLogicTest, standard debug build, typos and slang checked on device with the English dictionary. The score minimum comes from a small English sample.

Unknown words of up to 3 letters were not auto-corrected at all, to protect slang and abbreviations. Now a 3 letter word is also corrected if one letter was hit on a neighbor key and the suggestion is confident enough, besides two swapped neighbors. Slang like omg, idk or lol stays, two letter words are unchanged.
@LeanBitLab
LeanBitLab merged commit a0a2a97 into main Nov 30, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/1005-short-word-autocorrect branch November 30, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant